package cn.iocoder.yudao.module.wine.controller.app.messageboard.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "用户 APP - 用户留言板新增/修改 Request VO")
@Data
public class AppMessageBoardSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16186")
    private Long id;

    @Schema(description = "发送者id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25163")
    private Long sendId;

    @Schema(description = "接收者id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23525")
    @NotNull(message = "接收者id不能为空")
    private Long receiveId;

    @Schema(description = "留言内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "留言内容不能为空")
    private String content;

    @Schema(description = "是否已读 1是2否", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer isRead;

    @Schema(description = "聊天id", example = "25163")
    private Long chatId;

    /**
     * 类型ID:0--系统，1--供求，2--投诉，3--离职，4--会话
     */
    @Schema(description = "类型ID", example = "25163")
    private Integer typeId;
    /**
     *  来源信息id：0--系统，或会话
     */
    @Schema(description = "来源信息id", example = "25163")
    private Long infoId;
}
